package com.intellagric.service.traceability.trace_field;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.pojo.TraceFieldType;

/**
 * @Author: zhy
 * @email: 1269679946@qq.com
 * @Date: 2018/11/6
 * @DESC： 产地类型信息管理服务接口
 */
public interface FieldTypeService {

    //增加产地类型信息
    ResponseMessage addFieldType(TraceFieldType fieldType);

    //删除产地类型信息
    ResponseMessage deleteFieldType(String id);

    //修改产地类型信息
    ResponseMessage editFieldType(TraceFieldType fieldType);

    //查询产地类型信息
    TraceFieldType getFieldTypeById(String id);
    LayuiDataGridResult getFieldTypeByParentId(String parentId);
    LayuiDataGridResult getFieldTypeList();
    LayuiDataGridResult getFieldTypeTree();
    LayuiDataGridResult getFieldTypeTree(String createBy);
    
}
